/**
 * @author Victar Liaskovich 
 */
package com.devunion.bogdan.view.toolbar;

import java.awt.*;

public class ToolbarManager {
    private Container mainToolbar;
    private Container editorToolbar;

    private static ToolbarManager ourInstance = new ToolbarManager();

    public static ToolbarManager getInstance() {
        return ourInstance;
    }

    private ToolbarManager() {
    }

    public void setMainToolbar(Container mainToolbar) {
        this.mainToolbar = mainToolbar;
    }

    public void setEditorToolbar(Container editorToolbar) {
        this.editorToolbar = editorToolbar;
    }

    public void setMainToolbarVisible(boolean isVisible) {
        this.mainToolbar.setVisible(isVisible);
    }

    public void setEditorToolbarVisible(boolean isVisible) {
        this.editorToolbar.setVisible(isVisible);
    }
}
